package com.itheima.stock.service;

import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.resp.PageResult;
import com.itheima.stock.vo.resp.R;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface StockService {
    /**
     * 获取所有股票信息
     * @return
     */
    List<StockBusiness> getAllStockBusiness();

    R<List<Map>> getInnerStockMarket();

    R<List<Map>> getSectorAllLimit();

    R<List<Map>> getStockIncrease();

    R<PageResult> getStockAll(Integer page, Integer pageSize);

    R<Map> getStockUpDownLimitCount();

    void exportStockExcel(HttpServletResponse response, Integer page, Integer pageSize) throws IOException;

    R<Map> getStockTravolCompare();

    R<Map> getStockUpDownScope();

    R<List<Map>> getStockScreenMinuteSharing(String stockCode);

    R<List<Map>> getDayKLinData(String code);
}
